<?php 
	session_start();
	require_once("../includes/public.inc.php");
	$type = isset($_GET['type'])?$_GET['type']:'';
	$id = isset($_GET['id'])?$_GET['id']:0;
	$pr = mysql_fetch_array(mysql_query("select * from ".DBQIAN."product where id=".$id." order by id desc limit 1"));
	$htmlData = '';
	if (!empty($pr['desc'])) {
		if (get_magic_quotes_gpc()) {
			$htmlData = htmlspecialchars_decode(stripslashes($pr['desc']));
		} else {
			$htmlData = htmlspecialchars_decode($pr['desc']);
		}
	}
	
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="user-scalable=yes, width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>产品详情</title>
<link rel="stylesheet" type="text/css" href="css/huanqu.css" media="all">
</head>
<body>
<div class="pz-css">
	<ul class="top-tool">
		<li class="title">产品详情</li>
		<li class="back"><a href="javascript:history.go(-1)"></a></li>
		<li class="home"><a href="index.php?type=<?=$type?>"></a></li>
	</ul>
	<form action="product_get.php?act=dui&&id=<?=$pr['id']?>" id="frm" method="post">
		<div class="pz-panel">
			<img style="width: 100%;" src="<?=$pr['img']?>" />
		</div>
		<div class="pz-panel">
			<div class="group">
				<h4><?=$pr['name']?></h4>
				<h5>产品介绍：</h5>
			</div>
			<div class="group">
				<h5><?=$htmlData?></h5>
			</div>
            <input name="productname" value="<{$trophy.productname}>" type="hidden" />
             <input name="productlx" value="<{$trophy.productlx}>" type="hidden" />
		</div>
	</form>
    <div class="pz-panel">
			<div class="group">
			</div>
			<div class="group">
				<div class="span12"><button type="button" onclick="location.href='product.php?type=<?=$type?>'">返回</button></div></div>
			</div>
			</div>
		</div>
</div>
</body>
</html>